package com.example.module_web.adapter;

import com.example.module_web.R;
import com.example.module_web.beans.JieMianRu;
import com.example.module_web.viewholder.BindViewHolder;

import java.util.List;

/**
 * Created by ASUS on 2018/3/18.
 */

public class JieMianRuAdapter extends FormBAdapter<JieMianRu> {

    public JieMianRuAdapter(int layoutRes, List<JieMianRu> beans) {
        super(layoutRes, beans);
    }

    @Override
    protected void onBind(BindViewHolder holder, int position, JieMianRu jieMianRu) {
        holder.setText(R.id.item_form_num,String.valueOf(jieMianRu.getNumber()))
                .setText(R.id.item_form_date,jieMianRu.getDate())
                .setText(R.id.item_form_fangke,String.valueOf(jieMianRu.getFangke()))
                .setText(R.id.item_form_liulan,String.valueOf(jieMianRu.getLiulan()))
                .setText(R.id.item_form_jiagou,String.valueOf(jieMianRu.getJiagou()))
                .setText(R.id.item_form_shoucang,String.valueOf(jieMianRu.getShoucang()))
                .setText(R.id.item_form_tingliu,String.valueOf(jieMianRu.getTingliu()));
    }
}
